import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

import { RoleEnum } from '/@/enums/roleEnum';

const route: AppRouteModule = {
  path: '/coreCoding',
  name: 'CoreCoding',
  component: LAYOUT,
  redirect: '/coreCoding/index',
  meta: {
    orderNo: 1001000,
    icon: 'fxemoji:devilhorns',
    title: t('routes.cn.core.coreCoding.coreCoding'),
    hideChildrenInMenu: true,
    roles: [RoleEnum.coreCoding],
  },
  children: [
    {
      path: 'index',
      name: 'CoreCodingPage',
      component: () => import('/@/views/cn/core/coreCoding/CoreCodingPage.vue'),
      meta: {
        icon: 'fxemoji:devilhorns',
        title: t('routes.cn.core.coreCoding.coreCoding'),
        ignoreKeepAlive: true,
        roles: [RoleEnum.coreCoding],
      },
    },
  ],
};

export default route;
